﻿using System;
using System.Net;
using System.ComponentModel;
using System.Windows.Media;
using System.Xml.Serialization;

namespace OverlakeApp.ViewModels
{
    /// <summary>
    /// A class that stores the current weather information.
    /// </summary>
    public class WeatherDataModel : ViewModelBase
    {
        /// <summary>
        /// Initializes the WeatherDataModel
        /// </summary>
        public WeatherDataModel()
        {
            this.Temperature = "Loading...";
        }

        private string _Temperature;
        /// <summary>
        /// The Current temperature string, with the degree symbol and units.
        /// </summary>
        public string Temperature
        {
            get
            {
                return this._Temperature;
            }
            set
            {
                if (this._Temperature != value)
                {
                    this._Temperature = value;
                    this.OnPropertyChanged("Temperature");
                }
            }
        }


        private byte[] _WeatherImageBytes;
        /// <summary>
        /// The bytes for the weather image, in PNG format.
        /// </summary>
        public byte[] WeatherImageBytes
        {
            get
            {
                return this._WeatherImageBytes;
            }
            set
            {
                if (this._WeatherImageBytes != value)
                {
                    this._WeatherImageBytes = value;
                    this.OnPropertyChanged("WeatherImageBytes");
                }
            }
        }
        
    }
}
